home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / apidev / spxcon.arc / CONNECTA.ASM < prev    next >
Assembly Source File  |  1987-12-01  |  1KB  |  70 lines

  1. ;*****************************************************************************
  2. ;*
  3. ;* Program Name:  CONNECT
  4. ;*
  5. ;* Filename:      connecta.asm
  6. ;*
  7. ;* Date Created:  December 1, 1987
  8. ;*
  9. ;* Programmers:      Bryan Sparks
  10. ;*          Software Consultant
  11. ;*            API Consulting
  12. ;*          Novell Inc.
  13. ;*
  14. ;* Files used:      connect.c
  15. ;*
  16. ;* Comments:
  17. ;*    This assembly file contains two procedures that are "front-end"s 
  18. ;*    to C procedures that actually are the ESR procedures.
  19. ;*
  20. ;*****************************************************************************
  21.     title    ESR Routines to C Function
  22.     name    Connecta
  23.  
  24. DGroup    GROUP    _DATA
  25. _DATA    segment word public 'DATA'
  26.     assume    ds:DGroup
  27. _DATA    ends
  28.  
  29. PGroup    GROUP    _TEXT
  30.     assume    cs:PGroup
  31.  
  32. _TEXT    segment    byte public 'CODE'
  33.  
  34.     public    _ReceiveESRHandler
  35.     public    _SendESRHandler
  36.  
  37.     extrn    _SendESR: near
  38.     extrn    _ReceiveESR: near
  39.  
  40.  
  41. ;    
  42. ;    This is the front-end procedure to the C function "ReceiveESR"
  43. ;
  44. _ReceiveESRHandler    proc    far
  45.     mov    ax, DGroup
  46.     mov    ds, ax
  47.     push    es
  48.     push    si
  49.     call    _ReceiveESR
  50.     add    sp, 4
  51.     ret    
  52. _ReceiveESRHandler    endp
  53.  
  54. ;
  55. ;    This is the front-end procedure to the C function "SendESR"
  56. ;
  57. _SendESRHandler        proc    far
  58.     mov    ax, DGroup
  59.     mov    ds, ax
  60.     push    es
  61.     push    si
  62.     call    _SendESR
  63.     add    sp, 4
  64.     ret    
  65. _SendESRHandler    endp
  66.  
  67.  
  68. _TEXT    ends
  69.     END
  70.